package com.ymttest.database.mapping.godmch;

import com.ymttest.database.model.godmch.biz_config;
import com.ymttest.database.model.godmch.biz_configExample;
import com.ymttest.database.model.godmch.biz_configKey;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface biz_configMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @SelectProvider(type=biz_configSqlProvider.class, method="countByExample")
    int countByExample(biz_configExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @DeleteProvider(type=biz_configSqlProvider.class, method="deleteByExample")
    int deleteByExample(biz_configExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @Delete({
        "delete from biz_config",
        "where biz_id = #{biz_id,jdbcType=INTEGER}",
          "and biz_key = #{biz_key,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(biz_configKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @Insert({
        "insert into biz_config (biz_id, biz_key, ",
        "biz_value, create_time, ",
        "update_time)",
        "values (#{biz_id,jdbcType=INTEGER}, #{biz_key,jdbcType=VARCHAR}, ",
        "#{biz_value,jdbcType=VARCHAR}, #{create_time,jdbcType=TIMESTAMP}, ",
        "#{update_time,jdbcType=TIMESTAMP})"
    })
    int insert(biz_config record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @InsertProvider(type=biz_configSqlProvider.class, method="insertSelective")
    int insertSelective(biz_config record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @SelectProvider(type=biz_configSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="biz_id", property="biz_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="biz_key", property="biz_key", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="biz_value", property="biz_value", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP)
    })
    List<biz_config> selectByExample(biz_configExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @Select({
        "select",
        "biz_id, biz_key, biz_value, create_time, update_time",
        "from biz_config",
        "where biz_id = #{biz_id,jdbcType=INTEGER}",
          "and biz_key = #{biz_key,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="biz_id", property="biz_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="biz_key", property="biz_key", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="biz_value", property="biz_value", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP)
    })
    biz_config selectByPrimaryKey(biz_configKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @UpdateProvider(type=biz_configSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") biz_config record, @Param("example") biz_configExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @UpdateProvider(type=biz_configSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") biz_config record, @Param("example") biz_configExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @UpdateProvider(type=biz_configSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(biz_config record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_config
     *
     * @mbggenerated Fri Jul 10 14:32:58 CST 2020
     */
    @Update({
        "update biz_config",
        "set biz_value = #{biz_value,jdbcType=VARCHAR},",
          "create_time = #{create_time,jdbcType=TIMESTAMP},",
          "update_time = #{update_time,jdbcType=TIMESTAMP}",
        "where biz_id = #{biz_id,jdbcType=INTEGER}",
          "and biz_key = #{biz_key,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(biz_config record);
}